package c_03_candy;

/**
 * @author fu-xiao-liu
 * @Date 2022/6/2 22:13
 */
public class Candy11 {
    public static void main(String[] args) {
        Runnable runnable = new Runnable() {
            @Override
            public void run() {
                System.out.println("ok");
            }
        };
        test(11);
    }

    public static void test(final int x) {
        Runnable runnable = new Runnable() {
            @Override
            public void run() {
                System.out.println("ok:" + x);
            }
        };
        runnable.run();
    }
}

